#include "view_steps.h"
#include "app_trace.h"
#include "battery_ctrl.h"
#include "blecom.h"
#include "common/common.h"
#include "datetime.h"
#include "display_ctrl.h"
#include "display_interface.h"
#include "font/font.h"
#include "font_mngr.h"
#include "heart_rate_interface.h"
#include "lfs_file_manager_auto.h"
#include "math.h"
#include "platform_assert.h"
#include "rtc.h"
#include "sport_his.h"
#include "weather_ctrl.h"
#include "view_steps.inc"
void view_steps_display(int view)
{
    if (disp_ctrl.loop_cnt == 0)
    {
        disp_ctrl.auto_refresh_time = 500;
        disp_ctrl.com_data.i_temp[0] = sport_get_present_step();
    }
    int num = disp_ctrl.com_data.i_temp[0];
    draw_on_chip_gradients_image(6, 8, zip_image_circle, 0x87e7, 0x3d80);
    draw_on_chip_gray_gif_array_filter_color(6, 8, zip_gif_step, sizeof(zip_gif_step) / sizeof(zip_gif_step[0]), 0xFFFF);
    draw_on_chip_image_num_center(num, 0, 120, OLED_SIZE_X - 1, 120 + 32 - 1, zip_curve_num_10x28, 10, 1, draw_type_normal);
}
view_event_result_t view_steps_event(int view, event_param_t const *param)
{
    switch (param->event)
    {
#ifdef EVENT_LEVEL_DOWN
    case event_move_level_down:
#endif
#ifdef EVENT_BUTTON_FRONT
    case event_button_front_long_press:
#endif
        return view_event_result_handled;
    }
    return view_event_result_not_handled;
}
